package company.permissionsystem.security.roleassignment.factory;

import company.permissionsystem.security.roleassignment.PermissionAssignment;
import company.permissionsystem.security.roleassignment.PowerAssignment;

/**
 *  用户权力类
 * */
public class UserRole implements PowerAssignment {

    private String roleName;

    public UserRole (String roleName) {
        this.roleName = roleName;
    }

    @Override
    public PermissionAssignment op() {
        PermissionAssignment permissionAssignment = new PermissionAssignment();
        permissionAssignment.setSwaggerMonitoring(false);
        permissionAssignment.setDruidMonitoring(false);
        permissionAssignment.setAdminMonitoring(false);
        return permissionAssignment;
    }

}
